package com.example.icongyou.bean;

import com.google.gson.annotations.SerializedName;

public class Student {

    // 假设 Student 实体包含以下字段
    @SerializedName("studentId")
    private String studentId;

    @SerializedName("name")
    private String name;

    // 虽然后端返回时会设置为 null，但发送注册/更新请求时需要它
    @SerializedName("password")
    private String password;

    @SerializedName("className")
    private String className;

    // 构造函数 (注册和更新时使用)
    public Student(String studentId, String name, String password, String className) {
        this.studentId = studentId;
        this.name = name;
        this.password = password;
        this.className = className;
    }

    // Getters and Setters (Retrofit/Gson 需要它们)

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }
    // ... 其他字段和方法
}